import { defineStore } from 'pinia'
import { approvalInfo } from '/@/stores/interface'

export const useApprovalInfo = defineStore('approvalInfo', {
    state: (): approvalInfo => {
        return {
            dialogShow: false,
            data:{
                flowname: '',
                bizno: '',
                type:'', //view approve
                callback:undefined
            },
        }
    },
    actions: {
        setData(data: any) {
            this.$state.data = data
        },
        setDialogShow(dialogShow: boolean) {
            this.dialogShow = dialogShow
        },
    },
})
